const { createClient } = require("oicq");
const { pwd, uin } = require("./pwdConfig");
const bot = createClient(uin);
const handleMessage = require("./handleMessage");
//监听并输入滑动验证码ticket
bot.on("system.login.slider", (data) => {
  process.stdin.once("data", (input) => {
    bot.sliderLogin(input);
  });
});

bot.on("message", (data) => {
  handleMessage(data, bot);
});

bot.login(pwd); // your password or password_md5

